import { USER } from '@/services/api'
import { request, METHOD } from '@/utils/request'

export async function login(data) {
  return request(`${USER}/login`, METHOD.POST, data)
}

// 获取用户菜单配置
export async function getMenu() {
  return request(`${USER}/menu/obtain`, METHOD.POST)
}

export default {
  login,
  getMenu
}
